<?php
class TaohosoController extends UngvienTiisController {

    public function actionIndex() {    
        
        //add script
        Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl . '/css/hoso.css');
        Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/jquery-1.7.1.min.js', CClientScript::POS_HEAD);
        Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/bootbox.min.js', CClientScript::POS_HEAD);
        
       
        //check status profile
        $check = 'none';
        $ungvien = Nguoitimviec::model()->findByPk(Yii::app()->user->getState('info_ungvien')->id);
        if($ungvien->status == 1)
            $check = 'success';
        
        $this->render('form-hoso',array('check' => $check));     
        
    }
}
?>
